package com.woniuxy.dao;

import com.woniuxy.entity.EquipmentChange;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentChangeDao {
    //通过输入条件查询设备流通信息分页展示
    List<EquipmentChange> selectEquipmentChangeByCondition(@Param("EquipmentChange") EquipmentChange equipmentChange ,
                                                     @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //查询到的数据条数
    int selectEquipmentChangeCount( @Param("EquipmentChange") EquipmentChange equipmentChange );

    //通过种类查询设备流通记录
    List<EquipmentChange> selectEquipmentChangeByCategory(@Param("EquipmentChange") EquipmentChange equipmentChange ,
                                               @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //通过设备种类查询到的数据条数
    int selectEquipmentChangeCountByCategory( @Param("EquipmentChange") EquipmentChange equipmentChange );

    //添加设备流通记录
    void appendEquipmentChange(EquipmentChange equipmentChange);

    //删除设备流通记录，假删除，修改状态码
    void removeEquipmentChange(int equipmentChangeId);
}